package cn.kent.commandPattern;

/**
 * @author kent
 * @date 2021/6/6 17:06
 */
public class Invoker {
    // 什么命令
    private Command command;

    public void action() {
        this.command.execute();
    }

    // 客户发出命令
    public void setCommand(Command command) {
        this.command = command;
    }
}
